<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <h1>{{message}}</h1>
  <hello-world></hello-world>
  <c></c>
</div>

<script type="text/x-template" id="hello-world-template">
  <p>Hello hello hello</p>
</script>

<template id="cpn">
<p>This is Template!</p>
</template>

<script src="../js/vue.js"></script>
<script>

  Vue.component('hello-world', {
    template: `#hello-world-template`
  });
  //let(变量)和const(常量)
  const app = new Vue({
    el: '#app',
    data: {
      message: '中国牛蛙！'
    },
    components: {
      c: {
        template: `#cpn`
      }
    }
  })
</script>
</body>
</html>